#include<iostream>
using namespace std;
class CStudents
{
private:
    std::string name;
    int age;
    int studentid;
    double average1;
    double average2;
    double average3;
    double average4;
public:
    double average() {
        return(average1 + average2 + average3 + average4) / 4;
    }
    void init(string name_, int studentid_, int age_, double average1_, double average2_, double average3_, double average4_)
    {
        name = name;
        studentid = studentid_;
        age = age_;
        average1 = average1_;
        average2 = average2_;
        average3 = average3_;
        average4 = average4_;
    }
};
int main()
{
    string name;
    int studentid, age;
    double ag1, ag2, ag3, ag4;
    CStudents n;
    cin >> name >> age >> studentid >> ag1 >> ag2 >> ag3 >> ag4;
    n.init(name, studentid, age, ag1, ag2, ag3, ag4);
    cout << name << "," << age << "," << studentid << "," << n.average();
}
